package com.core.snowflake.dto;

import java.io.Serializable;

/**
 * 服务中心同步数据
 */
public class SnowFlakeSyncDataDto  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务中心同步tag
     */
   private String syncTag;

    /**
     * 命名空间
     */
  private String ns;

    /**
     * 备注标识
     */
  private String tag;

    /**
     * 最后同步时间 (时间值 毫秒）
     */
   private Long lastSyncTime;

    /**
     * 同步中心最大过期间隔 (毫秒)
     */
   private Long syncMaxTime;

    /**
     * 返回状态
     * synchronization 同步
     * add 增加
     * invalid （无效）      overdue（过期）      overflow (ID满额溢出)
     */
   private String codeState;

    /**
     * 机器唯一ID
     */
   private Long workerId;

    /**
     * 数据中心唯一ID
     */
   private Long datacenterId;

    /**
     * 机器标识位数
     */
  // private Long workerIdBits;

    /**
     * 数据中心标识位数
     */
  // private Long datacenterIdBits;

    /**
     * 自增标识位数
     */
   //private Long sequenceBits;

    /**
     * 是否启用毫秒
     */
  // private boolean isTimeMillis;



    /**
     * 时间差参考标准（重要锚定）
     */
    //private Long twepoch;


    public String getSyncTag() {
        return syncTag;
    }

    public void setSyncTag(String syncTag) {
        this.syncTag = syncTag;
    }



    public Long getLastSyncTime() {
        return lastSyncTime;
    }

    public void setLastSyncTime(Long lastSyncTime) {
        this.lastSyncTime = lastSyncTime;
    }

    public Long getSyncMaxTime() {
        return syncMaxTime;
    }

    public void setSyncMaxTime(Long syncMaxTime) {
        this.syncMaxTime = syncMaxTime;
    }

    public String getCodeState() {
        return codeState;
    }

    public void setCodeState(String codeState) {
        this.codeState = codeState;
    }

    public Long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Long workerId) {
        this.workerId = workerId;
    }

    public Long getDatacenterId() {
        return datacenterId;
    }

    public void setDatacenterId(Long datacenterId) {
        this.datacenterId = datacenterId;
    }

    public String getNs() {
        return ns;
    }

    public void setNs(String ns) {
        this.ns = ns;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }
}
